<template>
  <div class="app-container home">
    <h1>{{ chicken_soup }}</h1>
  </div>
</template>

<script setup name="Index" lang="ts">
import { initWebSocket } from "@/utils/websocket";
// import { testProcess } from "@/api/system/process";

// testProcess();

onMounted(() => {
  let protocol = window.location.protocol === "https:" ? "wss://" : "ws://";
  initWebSocket(
    protocol +
      window.location.host +
      import.meta.env.VITE_APP_BASE_API +
      "/resource/websocket"
  );
});

const chicken_soup = ref("海上生明月,天涯共此时!");
</script>

<style scoped lang="scss">
.home {
  text-align: center;
}
</style>
